<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Member/mcardlist')}">会员次卡列表</a></li>
			<li><a href="{:url('Member/cardadd')}">会员次卡添加</a></li>
                        <li><a href="{:url('Member/storevalue')}">储值卡列表</a></li>
                        <li class="active"><a href="{:url('Member/storeaddlist')}">储值卡添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('member/storedaddpost')}">
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>储值卡名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="stov_name" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>储值金额</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="sv_price" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>赠送金额</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="zs_price" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>储值卡售价</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="sj_price" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>效时间天数</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="valid_time" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>过期是否可用</label>
				<div class="col-md-6 col-sm-10">
                                    <label class="checkbox-inline">
                                         <select name="overdue_is" class="form-control" style="width: 120px;">
                                              <option value="1">仍可使用</option>
                                              <option value="2">禁止使用</option>
                                         </select>
                                    </label>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>储值卡折扣</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="svcard_is" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>商品折扣</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="goods_dis" required>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>服务折扣</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="serve_dis" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>状态</label>
				<div class="col-md-6 col-sm-10">
                                    <label class="checkbox-inline">
                                         <select name="status" class="form-control" style="width: 80px;">
                                              <option value="1">正常</option>
                                              <option value="2">冻结</option>
                                         </select>
                                    </label>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>产品详情</label>
				<div class="col-md-6 col-sm-10">
                                        <script type="text/plain" id="content" name="post_content"></script>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    $(function () {

        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content');
        try {
            editorcontent.sync();
        } catch (err) {
        }

        $('.btn-cancel-thumbnail').click(function () {
            $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
            $('#thumbnail').val('');
        });

    });
</script>